import { observable } from 'mobx'

const toastStore = observable({
  isShow: false,
  message: '',
  color: 'success',
  show() {
    this.isShow = true
  },
  hide() {
    this.isShow = false
  },
  success() {
    this.show()
  },
  error() {
    this.show()
  },
  warning() {
    this.show()
  }
})

export default toastStore